/*
 * @轮子的作者: 轮子哥
 * @Date: 2023-12-15 16:58:21
 * @LastEditTime: 2023-12-15 18:02:50
 */
import { translate as $t } from "../../../language/index"
//自定义好数据格式，去返回数据里获取需要的

//允许使用的功能
export const allowedFeatures = [
    {
        id: 0,
        jobId: 0,
        tag: 'use_contract_manage',
        value: null,
        name: $t('text.System.a42'),
        loading: false,
        elementType: 2,//类型，0-select，1-input，2-switch
        type: 6//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理,5-报备记录，6-交易合同，7-财务管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'use_deal_plan',
        value: null,
        name: $t('text.System.a43'),
        loading: false,
        elementType: 2,
        type: 6
    },
    {
        id: 0,
        jobId: 0,
        tag: 'use_real_record',
        value: null,
        name: $t('text.System.a44'),
        loading: false,
        elementType: 2,
        type: 6
    },
]


//查看合同
export const lookContract = [
    {
        id: 0,
        jobId: 0,
        tag: 'find_sell_contract',
        value: null,
        name: $t('text.System.a46'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 6//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理,5-报备记录，6-交易合同，7-财务管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'find_rent_contract',
        value: null,
        name: $t('text.System.a47'),
        loading: false,
        elementType: 0,
        type: 6
    },
    {
        id: 0,
        jobId: 0,
        tag: 'find_new_contract',
        value: null,
        name: $t('text.System.a48'),
        loading: false,
        elementType: 0,
        type: 6
    },
    {
        id: 0,
        jobId: 0,
        tag: 'find_contract_privacy',
        value: null,
        name: $t('text.System.a49'),
        loading: false,
        elementType: 0,
        type: 6
    },
    {
        id: 0,
        jobId: 0,
        tag: 'find_real_record',
        value: null,
        name: $t('text.System.a50'),
        loading: false,
        elementType: 0,
        type: 6
    },
    {
        id: 0,
        jobId: 0,
        tag: 'find_contract_log',
        value: null,
        name: $t('text.System.a51'),
        loading: false,
        elementType: 0,
        type: 6
    },
]



//新增合同
export const addContract = [
    {
        id: 0,
        jobId: 0,
        tag: 'insert_sell_contract',
        value: null,
        name: $t('text.System.a46'),
        loading: false,
        elementType: 2,//类型，0-select，1-input，2-switch
        type: 6//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理,5-报备记录，6-交易合同，7-财务管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'insert_rent_contract',
        value: null,
        name: $t('text.System.a47'),
        loading: false,
        elementType: 2,
        type: 6
    },
    {
        id: 0,
        jobId: 0,
        tag: 'insert_new_contract',
        value: null,
        name: $t('text.System.a48'),
        loading: false,
        elementType: 2,
        type: 6
    },
]

//编辑合同
export const editContract = [
    {
        id: 0,
        jobId: 0,
        tag: 'edit_sell_contract',
        value: null,
        name: $t('text.System.a46'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 6//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理,5-报备记录，6-交易合同，7-财务管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'edit_rent_contract',
        value: null,
        name: $t('text.System.a47'),
        loading: false,
        elementType: 0,
        type: 6
    },
    {
        id: 0,
        jobId: 0,
        tag: 'edit_new_contract',
        value: null,
        name: $t('text.System.a48'),
        loading: false,
        elementType: 0,
        type: 6
    },
]

//结单确认
export const statementComfirm = [
    {
        id: 0,
        jobId: 0,
        tag: 'completion_sell_contract',
        value: null,
        name: $t('text.System.a46'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 6//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理,5-报备记录，6-交易合同，7-财务管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'completion_rent_contract',
        value: null,
        name: $t('text.System.a47'),
        loading: false,
        elementType: 0,
        type: 6
    },
    {
        id: 0,
        jobId: 0,
        tag: 'completion_new_contract',
        value: null,
        name: $t('text.System.a48'),
        loading: false,
        elementType: 0,
        type: 6
    },
]

//删除合同
export const deleteContract = [
    {
        id: 0,
        jobId: 0,
        tag: 'del_sell_contract',
        value: null,
        name: $t('text.System.a46'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 6//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理,5-报备记录，6-交易合同，7-财务管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'del_rent_contract',
        value: null,
        name: $t('text.System.a47'),
        loading: false,
        elementType: 0,
        type: 6
    },
    {
        id: 0,
        jobId: 0,
        tag: 'del_new_contract',
        value: null,
        name: $t('text.System.a48'),
        loading: false,
        elementType: 0,
        type: 6
    },
]

//写跟进
export const writeFollow = [
    {
        id: 0,
        jobId: 0,
        tag: 'follow_insert_sell',
        value: null,
        name: $t('text.System.a46'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 6//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理,5-报备记录，6-交易合同，7-财务管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'follow_insert_rent',
        value: null,
        name: $t('text.System.a47'),
        loading: false,
        elementType: 0,
        type: 6
    },
    {
        id: 0,
        jobId: 0,
        tag: 'follow_insert_new',
        value: null,
        name: $t('text.System.a48'),
        loading: false,
        elementType: 0,
        type: 6
    },
]

//写跟进相关
export const followOperate = [
    {
        id: 0,
        jobId: 0,
        tag: 'follow_top',
        value: null,
        name: $t('text.System.a59'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 6//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理,5-报备记录，6-交易合同，7-财务管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: '',
        value: null,
        name: $t('text.System.a60'),
        loading: false,
        elementType: 0,
        type: 6
    },
    {
        id: 0,
        jobId: 0,
        tag: 'follow_del',
        value: null,
        name: $t('text.System.a61'),
        loading: false,
        elementType: 0,
        type: 6
    },
]

//交易进度
export const transProgress = [
    {
        id: 0,
        jobId: 0,
        tag: 'deal_plan_all',
        value: null,
        name: $t('text.System.a46'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 6//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理,5-报备记录，6-交易合同，7-财务管理)
    },
]

//应收管理
export const receiveManage = [
    {
        id: 0,
        jobId: 0,
        tag: 'must_manage_sell',
        value: null,
        name: $t('text.System.a46'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 6//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理,5-报备记录，6-交易合同，7-财务管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'must_manage_rent',
        value: null,
        name: $t('text.System.a47'),
        loading: false,
        elementType: 0,
        type: 6
    },
    {
        id: 0,
        jobId: 0,
        tag: 'must_manage_new',
        value: null,
        name: $t('text.System.a48'),
        loading: false,
        elementType: 0,
        type: 6
    },
]

//实收管理
export const actualManagement= [
    {
        id: 0,
        jobId: 0,
        tag: 'real_manage_sell',
        value: null,
        name: $t('text.System.a46'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 6//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理,5-报备记录，6-交易合同，7-财务管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'real_manage_rent',
        value: null,
        name: $t('text.System.a47'),
        loading: false,
        elementType: 0,
        type: 6
    },
    {
        id: 0,
        jobId: 0,
        tag: 'real_manage_new',
        value: null,
        name: $t('text.System.a48'),
        loading: false,
        elementType: 0,
        type: 6
    },
]

//业绩分配
export const PerformanceAll = [
    {
        id: 0,
        jobId: 0,
        tag: 'merit_share_sell',
        value: null,
        name: $t('text.System.a46'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 6//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理,5-报备记录，6-交易合同，7-财务管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'merit_share_rent',
        value: null,
        name: $t('text.System.a47'),
        loading: false,
        elementType: 0,
        type: 6
    },
    {
        id: 0,
        jobId: 0,
        tag: 'merit_share_new',
        value: null,
        name: $t('text.System.a48'),
        loading: false,
        elementType: 0,
        type: 6
    },
]

//签约喜报
export const ContractSigning = [
    {
        id: 0,
        jobId: 0,
        tag: 'sign_report_sell',
        value: null,
        name: $t('text.System.a46'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 6//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理,5-报备记录，6-交易合同，7-财务管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'sign_report_rent',
        value: null,
        name: $t('text.System.a47'),
        loading: false,
        elementType: 0,
        type: 6
    },
    {
        id: 0,
        jobId: 0,
        tag: 'sign_report_new',
        value: null,
        name: $t('text.System.a48'),
        loading: false,
        elementType: 0,
        type: 6
    },
]

//导出合同
export const exportContract = [
    {
        id: 0,
        jobId: 0,
        tag: 'export_contract',
        value: null,
        name: $t('text.System.a73'),
        loading: false,
        elementType: 2,//类型，0-select，1-input，2-switch
        type: 6//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理,5-报备记录，6-交易合同，7-财务管理)
    }
]

//交易进度模版
export const TransTemplate = [
    {
        id: 0,
        jobId: 0,
        tag: 'deal_template_all',
        value: null,
        name: $t('text.System.a75'),
        loading: false,
        elementType: 2,//类型，0-select，1-input，2-switch
        type: 6//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理,5-报备记录，6-交易合同，7-财务管理)
    }
]